package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"novel-mgmt/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/book/add", &controllers.BookControllers{}, "post:Add")
	beego.Router("/book/upload", &controllers.BookControllers{}, "post:Upload")
	beego.Router("/book/list", &controllers.BookControllers{}, "get:List")
	beego.Router("/book/del", &controllers.BookControllers{}, "get:Del")
	beego.Router("/book/detail", &controllers.BookControllers{}, "get:Detail")
}
